package com.guicelcc.guicedemo.annotation;

import java.io.PrintStream;

import com.google.inject.AbstractModule;
import com.guicelcc.guicedemo.MyApplet;
import com.guicelcc.guicedemo.MyDestination;
import com.guicelcc.guicedemo.PrintStreamWriter;
import com.guicelcc.guicedemo.StringWritingApplet;

public class HelloWorldModule extends AbstractModule {

	@Override
	protected void configure() {
		bind(MyApplet.class).to(StringWritingApplet.class);
        bind(MyDestination.class).to(PrintStreamWriter.class);
        bind(PrintStream.class).toInstance(System.out);
        bind(String.class).annotatedWith(Output.class).toInstance("Hello World");
       
	}

}
